/**
 * @Date 2023-02-04 10:53:17
 * @Remark
 */

// lib
import { makeAutoObservable, toJS } from "mobx";
// config
// state
// script & methods & public
// 其它

class DataState {
  roles: RoleDto[] = [];
  menus: MenuDto[] = [];
  routeItems:AppRouteItem[] = []
  // 权限管理
  permissions: PermissionDto[] = [];
  constructor() {
    makeAutoObservable(this);
  }
  get routeItemList(){
    return toJS(this.routeItems)
  }
  get roleList() {
    return toJS(this.roles);
  }
  get menuList() {
    return toJS(this.menus);
  }
  get permissionList() {
    return toJS(this.permissions);
  }
}

export default DataState;
